package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wys123
 * @since 2018-01-16
 */
@TableName("t_delivery_range")
public class DeliveryRange extends Model<DeliveryRange> {

    private static final long serialVersionUID = 1L;

    /**
     * 配送范围ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 企业ID
     */
    @TableField("company_id")
    private Integer companyId;
    /**
     * 部门ID
     */
    @TableField("dept_id")
    private Integer deptId;
    @TableField("start_time")
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 是否使用 0 是 1否
     */
    @TableField("is_use")
    private Integer isUse;
    /**
     * 交货方式 0 自提 1配送
     */
    @TableField("goods_mode")
    private Integer goodsMode;
    /**
     * 省地名
     */
    @TableField("pro_place_name")
    private String proPlaceName;
    /**
     * 区地名
     */
    @TableField("reg_place_name")
    private String regPlaceName;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 创建该费用名称的用户ID
     */
    @TableField("create_user_id")
    private Integer createUserId;

    @TableField("dot_id")
    private Integer dotId;

    @TableField("city_place_name")
    private Integer cityPlaceName;

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    public Integer getCityPlaceName() {
        return cityPlaceName;
    }

    public void setCityPlaceName(Integer cityPlaceName) {
        this.cityPlaceName = cityPlaceName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getIsUse() {
        return isUse;
    }

    public void setIsUse(Integer isUse) {
        this.isUse = isUse;
    }

    public Integer getGoodsMode() {
        return goodsMode;
    }

    public void setGoodsMode(Integer goodsMode) {
        this.goodsMode = goodsMode;
    }

    public String getProPlaceName() {
        return proPlaceName;
    }

    public void setProPlaceName(String proPlaceName) {
        this.proPlaceName = proPlaceName;
    }

    public String getRegPlaceName() {
        return regPlaceName;
    }

    public void setRegPlaceName(String regPlaceName) {
        this.regPlaceName = regPlaceName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeliveryRange{" +
        "id=" + id +
        ", companyId=" + companyId +
        ", deptId=" + deptId +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", isUse=" + isUse +
        ", goodsMode=" + goodsMode +
        ", proPlaceName=" + proPlaceName +
        ", regPlaceName=" + regPlaceName +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUserId=" + createUserId +
        "}";
    }
}
